package cn.dlc.com.demo.controller;

import cn.dlc.com.demo.entity.Demo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 邓立川
 * @date 2023/12/15 19:51
 * @desc 当前类的描述信息
 */
@RestController
@RequestMapping("demo")
@Slf4j
public class DemoController {

    @GetMapping("{id}")
    public Demo test(){

        log.info("this is test");
        Demo demo = new Demo();
        demo.setId("1");
        demo.setName("jack");

        return demo;
    }
}
